/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.thienloc.omap.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author GiangLT
 */
@Entity
@Table(name = "SHOOTING_DETAIL_HIST", catalog = "")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ShootingDetailHist.findAll", query = "SELECT s FROM ShootingDetailHist s"),
    @NamedQuery(name = "ShootingDetailHist.findByShootId", query = "SELECT s FROM ShootingDetailHist s WHERE s.shootId = :shootId"),
    @NamedQuery(name = "ShootingDetailHist.findByCampaignId", query = "SELECT s FROM ShootingDetailHist s WHERE s.campaignId = :campaignId"),
    @NamedQuery(name = "ShootingDetailHist.findByMsisdn", query = "SELECT s FROM ShootingDetailHist s WHERE s.msisdn = :msisdn"),
    @NamedQuery(name = "ShootingDetailHist.findByShortCode", query = "SELECT s FROM ShootingDetailHist s WHERE s.shortCode = :shortCode"),
    @NamedQuery(name = "ShootingDetailHist.findByContent", query = "SELECT s FROM ShootingDetailHist s WHERE s.content = :content"),
    @NamedQuery(name = "ShootingDetailHist.findByDeliverProvider", query = "SELECT s FROM ShootingDetailHist s WHERE s.deliverProvider = :deliverProvider"),
    @NamedQuery(name = "ShootingDetailHist.findBySendTime", query = "SELECT s FROM ShootingDetailHist s WHERE s.sendTime = :sendTime"),
    @NamedQuery(name = "ShootingDetailHist.findByStatus", query = "SELECT s FROM ShootingDetailHist s WHERE s.status = :status"),
    @NamedQuery(name = "ShootingDetailHist.findByResponseCode", query = "SELECT s FROM ShootingDetailHist s WHERE s.responseCode = :responseCode"),
    @NamedQuery(name = "ShootingDetailHist.findByResponseDetail", query = "SELECT s FROM ShootingDetailHist s WHERE s.responseDetail = :responseDetail"),
    @NamedQuery(name = "ShootingDetailHist.findByResponseTime", query = "SELECT s FROM ShootingDetailHist s WHERE s.responseTime = :responseTime"),
    @NamedQuery(name = "ShootingDetailHist.findByShootResult", query = "SELECT s FROM ShootingDetailHist s WHERE s.shootResult = :shootResult"),
    @NamedQuery(name = "ShootingDetailHist.findByDescrpition", query = "SELECT s FROM ShootingDetailHist s WHERE s.descrpition = :descrpition"),
    @NamedQuery(name = "ShootingDetailHist.findByCreatedBy", query = "SELECT s FROM ShootingDetailHist s WHERE s.createdBy = :createdBy"),
    @NamedQuery(name = "ShootingDetailHist.findByCreatedDate", query = "SELECT s FROM ShootingDetailHist s WHERE s.createdDate = :createdDate"),
    @NamedQuery(name = "ShootingDetailHist.findByLastUpdatedBy", query = "SELECT s FROM ShootingDetailHist s WHERE s.lastUpdatedBy = :lastUpdatedBy"),
    @NamedQuery(name = "ShootingDetailHist.findByLastUpdatedDate", query = "SELECT s FROM ShootingDetailHist s WHERE s.lastUpdatedDate = :lastUpdatedDate")})
public class ShootingDetailHist implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "SHOOT_ID")
    private Integer shootId;
    @Column(name = "CAMPAIGN_ID")
    private Integer campaignId;
    @Size(max = 20)
    @Column(name = "MSISDN")
    private String msisdn;
    @Size(max = 20)
    @Column(name = "SHORT_CODE")
    private String shortCode;
    @Size(max = 2000)
    @Column(name = "CONTENT")
    private String content;
    @Size(max = 200)
    @Column(name = "DELIVER_PROVIDER")
    private String deliverProvider;
    @Column(name = "SEND_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sendTime;
    @Size(max = 20)
    @Column(name = "STATUS")
    private String status;
    @Size(max = 20)
    @Column(name = "RESPONSE_CODE")
    private String responseCode;
    @Size(max = 2000)
    @Column(name = "RESPONSE_DETAIL")
    private String responseDetail;
    @Column(name = "RESPONSE_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    private Date responseTime;
    @Size(max = 200)
    @Column(name = "SHOOT_RESULT")
    private String shootResult;
    @Size(max = 2000)
    @Column(name = "DESCRPITION")
    private String descrpition;
    @Size(max = 20)
    @Column(name = "CREATED_BY")
    private String createdBy;
    @Column(name = "CREATED_DATE")
    @Temporal(TemporalType.TIMESTAMP)
    private Date createdDate;
    @Size(max = 20)
    @Column(name = "LAST_UPDATED_BY")
    private String lastUpdatedBy;
    @Column(name = "LAST_UPDATED_DATE")
    @Temporal(TemporalType.TIMESTAMP)
    private Date lastUpdatedDate;

    public ShootingDetailHist() {
    }

    public ShootingDetailHist(Integer shootId) {
        this.shootId = shootId;
    }

    public Integer getShootId() {
        return shootId;
    }

    public void setShootId(Integer shootId) {
        this.shootId = shootId;
    }

    public Integer getCampaignId() {
        return campaignId;
    }

    public void setCampaignId(Integer campaignId) {
        this.campaignId = campaignId;
    }

    public String getMsisdn() {
        return msisdn;
    }

    public void setMsisdn(String msisdn) {
        this.msisdn = msisdn;
    }

    public String getShortCode() {
        return shortCode;
    }

    public void setShortCode(String shortCode) {
        this.shortCode = shortCode;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDeliverProvider() {
        return deliverProvider;
    }

    public void setDeliverProvider(String deliverProvider) {
        this.deliverProvider = deliverProvider;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(String responseCode) {
        this.responseCode = responseCode;
    }

    public String getResponseDetail() {
        return responseDetail;
    }

    public void setResponseDetail(String responseDetail) {
        this.responseDetail = responseDetail;
    }

    public Date getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(Date responseTime) {
        this.responseTime = responseTime;
    }

    public String getShootResult() {
        return shootResult;
    }

    public void setShootResult(String shootResult) {
        this.shootResult = shootResult;
    }

    public String getDescrpition() {
        return descrpition;
    }

    public void setDescrpition(String descrpition) {
        this.descrpition = descrpition;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedDate() {
        return lastUpdatedDate;
    }

    public void setLastUpdatedDate(Date lastUpdatedDate) {
        this.lastUpdatedDate = lastUpdatedDate;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (shootId != null ? shootId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ShootingDetailHist)) {
            return false;
        }
        ShootingDetailHist other = (ShootingDetailHist) object;
        if ((this.shootId == null && other.shootId != null) || (this.shootId != null && !this.shootId.equals(other.shootId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.thienloc.omap.entity.ShootingDetailHist[ shootId=" + shootId + " ]";
    }
    
}
